import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    //根据条件分页查询分包商退库
    subcontractorRetreat (params) {
        return httpPost({
            url: '/material/subcontractorReturnToWarehouse/listByEntity',
            params
        })
    },
    //新增分包商退库
    AddSubcontractorRetreat (params) {
        return httpPost({
            url: '/material/subcontractorReturnToWarehouse/create',
            params
        })
    },
    //修改分包商退库
    EditSubcontractorRetreat (params) {
        return httpPost({
            url: '/material/subcontractorReturnToWarehouse/update',
            params
        })
    },
    //修改分包商退库明细
    EditSubcontractorRetreatList (params) {
        return httpPost({
            url: '/material/subcontractorReturnToWarehouse/updateList',
            params
        })
    },
    //修改分包商退库明细
    getSubReturnPreviousTotalInfo (params) {
        return httpPost({
            url: '/material/subcontractorReturnToWarehouse/getSubReturnPreviousTotalInfo',
            params
        })
    },
}

export default request